﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ChangeName
{
    public partial class NewNameForm : Form
    {
        public NewNameForm()
        {
            InitializeComponent();
            com_part.SelectedIndex = 0;
        }

        private void btn_ok_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        public string NewName
        {
            get { return txt_newname.Text; }
            set { txt_newname.Text = value; }
        }

        public bool IsApplyToAll
        {
            get { return check_applytoall.Checked; }
        }

        public bool IsForward
        {
            get { return com_part.SelectedIndex == 0; }
        }
    }
}
